<a href="#" onclick="openWindow()"></a>
<script>
    function openWindow() {
        window.open("window-to-ignore.html", "newWindow");
    }
    document.getElementsByTagName("a")[0].click();
</script>
